﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.Domain;
using YYSite.Common.Logging;
using YYSite.Domain.Content.Articles;

namespace YYSite.Application.Content.Articles
{
    public class ArticleService : ApplicationService,IArticleService
    {
        public ArticleService(ILogger logger,IArticleRepository articleRepository):base(logger)
        {
            ArticleRepository = articleRepository;
        }

        protected IArticleRepository ArticleRepository { get; }


        public DataGridOutput<Article> GetArticleByPage(GetArticleDataGridInput input)
        {
            return this.ArticleRepository.GetArticleByPage(input);
        }
    }
}


